package com.smen.boot.entity;

import org.apache.commons.lang.builder.ToStringBuilder;

public class User {

    private Integer id;

    private String name;

    private Integer age;

    private Integer password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getPassword() {
        return password;
    }

    public void setPassword(Integer password) {
        this.password = password;
    }

    @Override
    public String toString() {
        ToStringBuilder builder = new ToStringBuilder(this);
        if ("id" != null) {
            builder.append("id", id);
        }
        if ("name" != null) {
            builder.append("name", name);
        }
        if ("age" != null) {
            builder.append("age", age);
        }
        if ("password" != null) {
            builder.append("password", password);
        }
        return builder.toString();
    }
}